﻿using Entity.Models.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity.Models.vo
{
    public class UserInfoVo
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string _account { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string _userName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string _phoneNum { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string _email { get; set; }

        /// <summary>
        /// 头像地址 
        /// </summary>
        public string _avatar { get; set; }

        /// <summary>
        /// 性别 
        /// </summary>
        public int? sex { get; set; }

        public UserInfoVo(UserInfo userInfo)
        {
            Id = userInfo.Id;
            _account = userInfo.Account;
            _userName = userInfo.UserName;
            _phoneNum = userInfo.PhoneNum;
            _email = userInfo.Email;
            this.sex = userInfo.Sex;
        }
        public UserInfoVo()
        {
        }
    }
}
